<?php
/**
* @author: Pham Van Diep
* @date: 26/2/2014
*/
$strUrlBack = isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : HOST_BACKEND;
if( !isset($AppUI) || 
	!isset($_SESSION['personal'])||
    isset($_SESSION['personal']) &&(($_SESSION['personal']&1<<2) == 0)||
	! isset($_GET['nationalid'])  
) {
	redirect($strUrlBack);
}
$intNationalId    = intval($_GET['nationalid']);
//$this->load->model('national_model','national');
//$row   = $this->national->get($intNationalId);
$row = new stdClass;
$row->code='vn';
$row->name='VietName';
if($row == null) {
    	redirect($strUrlBack);
}
$this->smarty->assign('intNationalId', $intNationalId);
$this->smarty->assign('row', $row);
$this->smarty->assign('back', $strUrlBack);
$this->smarty->display('national/edit.tpl');